import request from '@/utils/request'

export function query(data) {
  return request({
    url: `mes/m/toolGroupNumber/query`,
    method: 'post',
    data
  })
}
// 根据id查看数据
export function queryById(id) {
  return request({
    url: `mes/m/toolGroupNumber/getById/${id}`,
    method: 'get'
  })
}

// 删除
export function remove(data) {
  return request({
    url: `mes/m/toolGroupNumber/delete`,
    method: 'delete',
    data
  })
}

/**
 * 新增或修改
 * @param data
 */
export function save(data) {
  return request({
    url: `mes/m/toolGroupNumber/save`,
    method: 'put',
    data
  })
}
